# Contributor: Edd Salkield <edd@salkield.uk>
# Maintainer: Edd Salkield <edd@salkield.uk>
pkgname=swayhide
pkgver=0.2.1
pkgrel=1
pkgdesc="A window swallower for swaywm"
url="https://github.com/NomisIV/swayhide/"
arch="all !s390x !riscv64" # rust
license="GPL-3.0-only"
makedepends="cargo cargo-auditable"
source="https://github.com/NomisIV/swayhide/archive/v$pkgver/swayhide-v$pkgver.tar.gz"


prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	cargo auditable install --locked --offline --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*
}

sha512sums="
4c7c9d5138d827faddf63bdd80895d89e583b11a034087e62ff31f07b0c32d1f1990b1c8d8a1104dd6e1dae0ba77353456ffa762c5bc535e753c63bba1ac4f17  swayhide-v0.2.1.tar.gz
"
